<?php


use Hx\Router;

//---- top link

Router::get('/all/', array('Index', 'all'));

//---- list link

Router::get(array('', 'index.html', 'index.php', '/page/:id/'), array('Index', 'main'));

Router::get(array('/author/:user/', '/author/:user/:page/'), array('Index', 'user'));

Router::get(array('/category/:key/', '/category/:key/:page/'), array('Index', 'category'));

//---- blog link

Router::get('/p/:key.html', array('Blog', 'one'));

Router::post('/p/:key.html', array('Blog', 'comment'));

//---- error link

Router::get('/error/:code.html', array('Error', 'show'));

//---- meta data link

Router::get(array('/feed.xml', '/feed/'), array('Meta', 'feed'));

Router::get(array('/sitemap.xml', '/sitemap/'), array('Meta', 'map'));